package com.dwxt.common.base;

public enum StatusCode {

    SUCCESS(200, "SUCCESS"),
    FAIL(500, "服务器内部错误"),
    SERVICE_FAIL(501, "服务无效"),
    CURRENT_CHUNK_INVALID(403, "当前块无效！"),
    PARAMETER_WRONG(1001, "请求参数有误"),
    USERNAME_PASSWORD_WRONG(1002, "用户名或密码错误"),
    PERMISSION_FAIL(1003, "权限不足,请重新登录"),
    USERNAME_EXIST(1004, "电话号码已存在"),
    PHONE_NOT_EXIST(1004, "电话号码不存在"),
    TOKEN_EXPIRED(1005, "token已过期"),
    USER_NOT_EXIST(1006, "用户不存在"),
    ID_IS_NULL(8001, "请传入id"),
    TRY_LATER(1200,"此账号重试次数过多，请30分钟后重试"),
    TYPE_ERROR(5008,"请求参数类型有误"),

    USERNAME_INVALID(1006, "用户无效"),
    ROLE_NAME_EXIST(1007, "角色名已存在"),
    ROLE_IS_USED(1008, "角色仍在被使用，无法删除"),
    ROLE_NOT_EXIST(1009, "角色不存在"),
    MENU_EXIST(1010, "菜单已存在"),
    MENU_NOT_EXIST(1011, "菜单不存在"),
    PERMISSION_NOT_EXIST(1012, "权限不存在"),
    PERMISSION_EXIST(1013, "权限链接已存在"),
    SIGNED_TODAY(1014, "今天已签到"),
    USER_UPDATE_FAIL(1015, "身份证已被使用"),
    ORDER_PURCHASE_FAIL(1016, "订单购买失败"),
    PRODUCT_STOCK_NOT_ENOUGH(1017, "订单购买失败"),
    PRODUCT_LIMIT(1018, "产品购买数量已达上限"),
    SHIP_FAIL(1019, "发货失败,请检查订单状态"),
    ADDRESS_NOT_FOUND(1020, "请添加一个地址"),
    CODE_ERROR(1021, "验证码错误或过期"),
    REFUND_ERROR(1022, "退款失败"),
    BOOK_FAil(1023, "预定场馆出现未知错误"),
    IMG_ERR(1024, "最多上传5张图片"),
    REPEAT_PRODUCT(1025, "不能添加重复商品"),
    REFUND_PRICE_ERROR(1026, "纯积分不能退款"),
    SELECT_INFO_ISNOT_EXIST(1027,"信息不存在"),

    RACE_ISNOT_EXIST(2001, "赛事不存在"),
    CERTIFICATION_ISNOT_RIGHT(2002, "证件号有误"),
    ORDER_IS_REDUCE(2003, "订单支付失败，赛事库存增加"),
    RACETIME_CANNOT_TOO_EARLY(2004, "报名时间或赛事开始时间有误"),
    RACE_CANNOT_BE_CONFIRM(2005, "赛事状态异常无法审核"),
    RACE_CANCEL_FAIL(2006, "取消报名失败，请检查报名状态"),
    ENTERRACEINFO_CANNOT_FOUND(2007, "报名信息不存在"),
    ISNOT_RACETIME(2008, "当前不是报名时间"),
    INFO_ISNOT_EXIST(2009, "报名信息不存在"),
    INFO_IS_EXIST(2010, "信息已存在"),
    RACE_IS_CANCEL(2011,"报名已经取消"),
    RACE_IS_FULL(2012,"赛事报名已满"),
    ORDER_IS_REFUND(2013,"赛事已退款"),
    PAYINFO_ISNOT_EXIST(2014,"未查询到赛事订单，请联系技术人员确定是否有真实订单"),
    RACE_IS_FINISH(2015,"赛事已结束"),
    RECYCLE_IS_CREATE_TODAY(3001, "上门回收24小时内仅能预约一次"),
    SMS_CANNOT_USE(4001, "短信服务器无法连接！"),
    SMS_UNKNOWN(4002, "短信接口位置错误"),
    COMMUNITY_IS_EXIST(4003,"该社区已有上门回收员"),


    SELL_MACHINE_NOT_EXIST(1103, "售货机不存在！"),
    SELL_MACHINE_AISLE_ERROR(1102, "缺少货道信息！"),
    GOODS_NUM_ERROR(1101, "补货数量不正确！"),
    GOODS_NOT_EXIST(1104, "商品不存在"),
    GOODS_STOCK_LESS(1104, "商品库存不足"),

    INFORMATION_NOT_SET_TYPE(1105, "没设置类型"),
    INFORMATION_NOT_EXIST(1106, "资讯不存在！"),
    ALREADY_HOUSE_HEAD(1107, "已经是户主"),
    WORK_ID_EXIST(1108, "工号已存在"),
    ID_CARD_EXIST(1109, "身份证已存在"),
    PASSWORD_EXIST(1110, "请设置密码!"),
    PHONE_EXIST(1111, "电话已存在"),
    EXIST_SUPERVISOR_USER(1112, "此用户关联有员工！"),
    VIDEO_NOT_EXIST(1113, "视频消失了"),
    SUPERIOR_NOT_EXIST(1114, "巡检员不存在"),
    NOT_SET_SUPERIOR(1115, "请为督导员分配巡检员"),
    ROLE_ERROR(1116, "不能同时为督导员和巡检员"),
    ACCOUNT_STOP(1117, "账户已停用！"),
    COLUMN_NOT_EXIST(1118, "栏目不存在！"),
    BAG_EXIST_USE(1119, "此垃圾袋已经被绑定！"),
    BAG_NOT_EXIST(1120, "垃圾袋不存在！"),
    HOUSE_ADDR_NULL(1121, "用户家庭地址未设置！"),
    PRICE_ERROR(1122, "小数类型价格小数点后最多保留1位！"),
    GOODS_HAVE_LINKED_TO_AISLE(1123, "商品已经关联货道,不能停用！"),
    SMJ_ALREADY_EXZIT(1124, "售卖机编号重复！"),
    AISLENO_IS_EXIST(1125, "货道编号已经存在,不能重复"),
    GOODS_NAME_IS_EXIST(1126, "商品名已经存在,不能重复"),
    CONTROL_NO_IS_EXIST(1127, "兑换机编号已经存在,不能重复"),
    CURRENTNUM_MUST_BE_CLEARED(1128, "货道的商品库存必须清零才能更换商品"),
    INTEGRAL_ADD_FAILED(1129, "货道的商品库存必须清零才能更换商品"),
    ALREADY_HOT(1130, "已经是热门"),
    SHARE_SAT(1131, "分享次数超限"),
    INFORMATION_IS_USEED(1132, "资讯已被绑定"),


    //心之声
    HEARTVOICE_INSERT_FAIL(3001,"数据插入失败"),
    //客户管理
    CUSTOMER_CANNOT_DELETE(9000,"客户有关联信息，无法删除"),

    /** 设备管理 */
    EQUIPMENT_NOT_DELETE(8002, "设备已发放,不能删除，请先回收设备再删除"),
    YES_BIND_EQUIPMENT(8003, "设备已经绑定，不能重复绑定设备"),
    SERIAL_NUMBER_IS_REPEAT(8004, "设备序列号不能重复"),
    SERIAL_NUMBER_NOT_NULL(8005, "设备序列号不能为空"),
    EQUIPMENT_ID_NOT_NULL(8006, "设备id不能为空"),
    CUSTOMER_ID_NOT_NULL(8007, "客户id不能为空"),
    SERIALNUMBER_NOT_CHANGE(8008, "已经发放的设备不能更改序列号"),
    YES_BIND_EQUIPMENT_TYPE(8009, "相应的设备类型用户只能绑定一个"),

    /**预警*/
    CONDUCT_IS_NOT_NULL(8011, "处理方式不能为空"),
    WARN_IS_HANDLE(8012, "报警已处理，不能重复处理"),
    /**客户*/
    NOT_BIND_EQUIPMENT(9001,"未绑定设备"),
    CAN_NOT_DELETE(9002, "有关联关系，无法删除"),
    CAN_NOT_BINDYOURSELF(9003,"不能关联自己"),

    NOT_ALLOW(1100,"不允许的操作"),
    ALREADY_RELATION(1101,"已经关联"),
    ALREADY_SEND(1102,"等待确认中，请不要重复发送"),


    ADMIN_CANOT_ADD_COMMUNITY(5001,"超级管理员无法添加社区,请联系社区养老服务站添加"),
    CAN_NOT_DELETE_FIXED_ROLE(5002,"无法删除固定角色"),
    NO_PART_ID(5003,"没有选择客户角色"),
    NO_CUSTOMER(5004,"客户信息不存在"),
    DEVICE_NOT_EXIST(5005, "设备不存在"),
    ANALYSE_FAIL(5006, "分析失败"),
    NO_SETMEAL(5007, "您还没有套餐"),
    SEND_CODE_FAIL(5008, "验证码发送失败"),
    NO_STATION(5009, "没有所属区域"),
    NO_ALLOW_LOGIN(5010, "等待允许登录"),
    EMPLOYEE_STATION_ERROR(5011, "营业员所属区域有误，请联系管理员"),
    LB_ADD_ERROR(5012, "来邦服务器注册手表失败"),
    ADD_CUSTOMER_ERROR(5013, "添加客户失败"),
    NO_PERMISSION (5014, "权限不足"),
    ;




    StatusCode(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    private Integer status;
    private String msg;

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }


}
